Replay: some code motion & reuse ReplayCommittedState
#4849
+150
−119
ReplayCommittedState
#4849