Checkstyle and PMD.
Introduce interface method HistoryDao.purgeOldEntries.