Clean up IDTDocument to reflect the needs of the current project.