Refactor BackupUtil.