Factor out archive

Right now we archive participants during take_over, but we also want to archive participants during account cancelation.

Follow-on from #2464.