Add transition handler for monitoring replica state transitions.