This seems like a fairly straightforward refactoring as the only usage of ILBFactory seems to be
// Wait for the replicas, just in case we e.g. hit a range of ids which need a lot of writes. $this->lbFactory->waitForReplication( [ 'domain' => $this->lbFactory->getLocalDomainID(), ] );