Move badge creation into recipe class.