refactoring DefaultDOManager to be less than 2000 lines long and not have 400 line methods and dead code