Refactor humongous Gruntfile.