uniform place to define serializers