Cleanups for the node graph code.