Refactored how import operation assigns children to a family.