Refactoring of food mod class.