Don't rely on `doc.model`