Add history purge as trait