Remove core.Document cruft