please refactor duplicate code with DeploymentModulePrefs