Refactor bulk_archive and bulk_destroy of APIv3