Refactor ReplicationQueue to pass around ReferenceUpdatedEvent Change-Id: I758a0766156e5563998d97f4c52ee10ab5e88b93