Refactoring gruntfile