The Warriors had one route to relevancy remaining before the NBA trade deadline to find a second star to pair with Steph Curry for the last few seasons of his career.

They took it.

It took them long enough.

On the day that Kevin Durant said “no thanks” to a Bay Area return, the Warriors were able to get Jimmy Butler, who reportedly eschewed a San Francisco move earlier this week, to come west. It cost more than $60 million each of the next two seasons, plus Andrew Wiggins, Dennis Schröder, Lindy Waters and a protected first-round draft pick. But those were small prices to pay.

The deal had to be made, and credit to Dubs’ general manager Mike Dunleavy for orchestrating it.

Trades might be hard, but for the Warriors, this trade was necessary and two years in the making.

Because the cost of not landing a player like Butler, not finding someone who can reliably get a bucket opposite Curry in crunch time, would have been incalculable.

It would have turned the Dubs into the Jonathan Kuminga Show in a year or two, and that’s the best-case scenario.In the meantime, Warriors basketball would have been a slow, tedious, boring descent into the depths of nostalgia. The Forever Warriors era, if you will.

Ask the Giants how that worked out for them.

It would have sent the Warriors back to the pre-Steph era, albeit with fancier amenities.

It would have been a death knell to the concept of Warriors exceptionalism.

And while adding Butler, 35, doesn’t ensure anything for the Dubs — not a playoff berth and certainly not a title — they’ll at least have a chance at being interesting and competitive for the next couple of seasons.

That’s more than they could have said before trading for Butler.

After that, Kuminga (or whoever else) can take over the franchise.

Yes, the Warriors might not be light years ahead anymore, but after the trade they can claim to be doing a version of another Dubs’ slogan:

They’re back on the two-timeline plan, an idea owner Joe Lacob introduced early in the post-Kevin Durant era.

Between now and the end of the 2026-27 season, the Dubs are all-in on the Curry era.

That means Draymond Green, Steve Kerr and now Jimmy Butler — the old guard and the new, older guy — are leading the way, and the team’s current status of mediocrity is truly unacceptable. Curry’s, Green’s and Butler’s deals expire at the end of the 2026-27 season.

Then there’s the second timeline, led by the supposedly untouchable Kuminga and Brandin Podziemski. You can toss Trayce Jackson-Davis into that mix, too. What’s that worth? Not much in my book today, but things can change in a few seasons.

Yes, the Dubs went from a no-timeline plan — aimlessly floating — to having clear windows.

There’s the Steph window and the beyond.

You have to love the clarity, even if you don’t specifically love the Butler trade.

So, will Butler with the Warriors work?

I’ll buy stock as someone who has pushed this pairing for months. Sure, I’m concerned about Butler’s lack of floor spacing, but I’ll take his basketball IQ, defensive prowess and shot creation (for himself and others) any day of the week.

What’s that worth?

Give me the long-shot odds on a top-six spot in the Western Conference, a guaranteed playoff spot, for the Warriors. With the right matchups, winning a round or two in the postseason is a reasonable expectation.

Of course, this could be a disaster: The eminently combustible Butler and Green in the same locker room? The Warriors should pay out Butler’s new two-year, $121 million extension by selling the reality show rights to that possible drama.

But disaster was coming no matter what the Warriors did. Dynasties, or whatever the Dubs are these days, rarely fade gracefully, even as Curry does just that.

So the Warriors rightly decided to go for some upside in the years to come.

There were other options, perhaps better options, but they weren’t coming to the bay.

Butler, in fact, wasn’t coming, either.

Whether it was his paltry trade market or the Dubs’ fat contract offer (the only one extended his way, from what I can tell) that convinced him Golden State was the spot for him doesn’t matter.

The end result — Butler’s arrival — is all that counts.

The same will prove true with the Warriors in the weeks, months and years to come.

But now those results will matter in the larger NBA landscape.

The Dubs fulfilled their longstanding mandate and didn’t jeopardize their so-called future to do it, either.

That’s banner work.

And in a Western Conference that’s anyone’s to take (the Warriors have won two of three against Oklahoma City this season), Golden State now has a small outside shot at raising another banner.

Seeing as you can’t divide by zero, the Warriors’ title chances before landing a No. 2 to Curry, there’s no other way to call it:

This trade was the Warriors’ biggest win of the season.