Please explain the broader context here; for example, by "ingredient" do you mean literally something for a food-recipe, or is that a more abstract term for a component part of your system? (And if so, then please tell us what your system actually does).
Also, please edit your post to include the full definitions of createDomainObject, InventoryItemKind, DomainTypes, NamedCoreModel, CoreModel, IsPerishable, and IsIngredient.