Why isn't this just:

@max_write_batch_size = @collection.db.connection.max_write_batch_size?