Remove nodes from AST