Refactoring deployment