Refactor Nutrition Bar

Nutrition bar condensed to one function.