Refactoring to get injected dependency of ConnectionHandler.