refactor from Model\Item::getByClass() and underlying to use class struct instead of anon array