Move backup logic into BackupService class.