Problem seems to be not removing the decl from the AST in rmDecl