This stuff still needs to get extracted from the routes code.  Merge this into Sync somehow, maybe have `Sync.clients` and `Sync.sessions` and you bounce instances between them?  It's all part of the same logic unit, so abstract and hide it all in the same module.