Refactor gruntfile.