Consolidate serializers and deserializers.