Refactor a common logic for endpoint models and collections.
Refactor a common logic for endpoint models and collections.

Spaciblo/spaciblo-core,Spaciblo/spaciblo-core,Spaciblo/spaciblo-core,Spaciblo/spaciblo-core