remove code for fixed-order tree rewrite