Rearrange repl task for greater clarity.

Fixes #966.