Remove auxiliary rules from syntax tree