Switch to a DRY-er approach in Gruntfile