refactoring gruntfile