Split the object constructor for the serializer into it's own di service so you can override it in your own application