reposync: bring kitchen sync into other sync code