Extracted children management into a separate module.