Replace reflection with interfaces for configuring serializers via attributes.