Refactor Gruntfile.