[MNG-5747] keep useLegacyLocalRepositoryManager on copy