Split sync into syncData, syncIndex and syncRoutes