Cleanup some code in node.rs.