Updated Document data model to use new Namespace behavior and trimmed dead code paths.