Extract anonymous function running to runonymous-grunt