refactor categories and ingredients getters