small refactoring of CmdReplSetFresh