remove the ast tree earlier - saves over 3% peak memory usage