refactoring balancedeployment scenarios