Move #rep & #outrep parser into SpellsCodegen