Break node_main into more partials