<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ordered_by_replica(self, request_key):
 """ Should be called by each replica when request is ordered or replica is removed. """

        state = self.get(request_key)
        if not state:
            return
        state.unordered_by_replicas_num -= 1