I use a lot of yaml so am not tempted to shorten this to just function and use labels or areas as these are not visible when constructing scripts or automations.
It would be more correct to say that Devices are a collection of entities. Entities are not always created by a device. Some entities are created as part of a service and many entities like automations, scripts, scenes, and helpers are created by integrations.