refactoring deployments