Refactoring deployment workflow