[cloud-sync] [skip ci] - Refactor sync helper.