Refactor, reduce complexity of AssetSync.sync method