Simplify transformRows for Repeat.