Move the backup process to a new class