LPS-51912 Move methods from LocalRepository to DocumentRepository to unify both LocalRepository and Repository and remove duplicates