refactor: handle emission of registerChild from a single place in code