Refactor handlebars compilation in Gruntfile.