KAZOO-2617: make archive generic and tweaking the maintenance routines