code: def ordered_by_replica(self, request_key):
          
          state = self.get(request_key)
          if not state:
              return
          state.unordered_by_replicas_num -= 1
docs: Should be called by each replica when request is ordered or replica is removed.