`convert_nodes_to_single_node` is inside its own file so ChildNode can include and use it without having to include other headers such as DOM/Node.h. This is to prevent circular includes.