Refactored coded for food groups