Abstracted serializer