avoided code duplication in ConnectionDeployer.run method