strip AST down to bare essentials