Refactoring deployment file