Move the handling of serializations to dedicated classes. Make these serializers available through a registry.
inject the needed serializers directly instead of the serializer registry