move serializer field configuration to model