Midway through the season, the Cavaliers are starting over.

LeBron James, meet your new team.

Cleveland made dizzying splashes before Thursday’s deadline, first agreeing to a deal with the Lakers, ESPN reported, that would send Larry Nance Jr. and Jordan Clarkson to Cleveland for Isaiah Thomas, Channing Frye and their own first-round draft pick next season, which is protected.

Next, Cleveland sent Jae Crowder and Derrick Rose to Utah and Iman Shumpert to Sacramento in a three-team trade that brought back George Hill and Rodney Hood, ESPN reported. The Jazz will release Rose to give him a chance to sign with a playoff contender.

They then unloaded Dwyane Wade back to Miami for a protected second-round pick, ESPN reported.

The Thomas trade ends his ill-fated run in Cleveland that saw him return from a hip injury to struggle on the floor and clash with teammates off it. Thomas, who is in the final year of his deal, was acquired from the Celtics as part of the Kyrie Irving trade this offseason.

The Lakers’ primary motivation was unloading Clarkson’s contract, which will pay him $26 million over the next two seasons. Los Angeles will now have enough cap space to sign two max contract players in 2018 and/or 2019. They also replenished a first-round selection this year, though the protections on the pick are unclear.

“He’s worked hard to get back, and he’s a ball dominant player,” Thomas’ agent, Aaron Goodwin, told Cleveland.com. “It’s LeBron’s ball and this clearly wasn’t working. Koby (Altman) and I have had enough conversations where it was clear, with the way the system was going, it wasn’t beneficial for either party. This is a good opportunity for Isaiah.”