Refactoring FederatedQueueManager.