Using existing serializer functions to compose new serializers