Refactoring to have a ClientSyncEngine.