[master 4/4] Do basic child accounting when replacing a parent.