Convert tag rewriting to full-object lambdas