Refactoring of the deployment tasks