Remove unnecessary node.