Small refactor removing NodeTree::createNodeGuard.