Refactoring remote deploy null args