Remove get/hasattr from AST