Put less generation code in grunt file