Move code for multiple steppings which uses repa nearer to the repa
implementation.