I\'m building an application using swift with firestore. I have entities and repositories classes, but trying to make it more generic I guess. To avoid losing information betwee