Revert document API to support cascading titles again.