minor amount of code refactoring

in preparation for implementing 'curl',
I wanted to move as much code as possible (DRY)
into the "replay" base class.