refactoring: Code duplication eliminated in RecentFilesStore