Refactoring in SSHClientFactory.