Refactor replay-init logic into replay.cc.