Replace Document::{with_base, with_mut_base} by Document::{document, mut_document}.