Make _children_to_parts() a function.