Move renaming of history to FileHistoryDao.