Refactored managers logic to allow for DocumentManagers