Using composition to generate new serializers from existing