Move gruntfile definition to private function of GruntHelper