Use generic reference to serializer