Would it make sense to have a hash max_sizes with keys
:max_message_size, :max_append_size, :max_serialize_size that we pass around instead?