Move node-related functions from rt module to rt_node.