DC's Legends of Tomorrow will be losing two of its castmates as series regulars. Season 5 will mark the end of the line for Brandon Routh, who plays Ray Palmer (The Atom) and Courtney Fort (Nora Darhk) on The CW series.

“Brandon and Courtney have been invaluable members of the Legends family,” executive producers Phil Klemmer, Grianne Godfree and Keto Shimizu told Deadline. “They have always brought a level passion and collaboration to their characters and to the show — both on and off the screen – that we deeply admire and for which we are eternally grateful.”

RELATED: Legends of Tomorrow: An Unlikely Hero Gets a New Power in Season 5

“As one of the founding Legends of Tomorrow, Brandon is extremely beloved by the fans and everyone on the show.,” Klemmer, Godfree and Shimizu said.

The creative team behind Legends of Tomorrow decided to end the story arcs for Ray and Nora, which isn't uncommon for the DC superhero show. There has been a rotating cast of characters through Legends of Tomorrow's run, though Routh was one of its original cast members after transitioning from Arrow. Fort joined Legends of Tomorrow in a recurring role in Season 3 and became a series regular in Season 4.

For now, the door will be left open for Routh and Ford to return for any future guest-appearances.

“Of course, when we have had main characters in the past whose journeys take them away from the Waverider, it’s never truly goodbye,” the producers said. “We love these characters and hope to check in with them in future seasons, to see how life off the ship has transformed them for better or worse.”

RELATED: Legends of Tomorrow S5's Villain Is a Constantine Mainstay

“I’m so grateful to have had the opportunity to bring the big-hearted and humorous Ray Palmer to life for our fans over the last 5 years, but unfortunately, his storyline is pointed in another direction,” Routh said in a statement. ” I’m saddened to see Ray’s journey end for now but wish my Legends family well.”

“Nora Darhk is very close to my heart. If it were my choice, I’d play her for years to come. But I understand that stories run their course, and I’m grateful for the time I did have bringing Nora to life on Legends of Tomorrow," Ford added.

Their final episode is scheduled to film in October, though it is unknown at this time when the episode will air in Season 5.

RELATED: The CW Not Planning to End More Arrowverse Shows Anytime Soon

Routh will suit up as the Man of Steel once again in the Arrowverse crossover event, "Crisis on Infinite Earths," as the Kingdom Come Superman.

Returning in 2020 on The CW, DC’s Legends of Tomorrow stars Caity Lotz, Dominic Purcell, Brandon Routh, Nick Zano, Maisie Richardson-Sellers, Tala Ashe, Matt Ryan, Jes Macallan and Courtney Ford.