We were using similar but slightly different syncing code in the remote-helper, issues/patches and `rad sync`. This commit unifies them.
Id
RepoId