#move_to_child_with_index logic moved to separate class