Previously we kept all entities and their items (which are also instances of _converse.DiscoEntity) in a flat array. Instead, we should have a tree-like structure where items are stored on the relevant entity (and recursively on other items).