Refactor deployment configuration