Victor Garber is leaving “Legends of Tomorrow.”

According to Deadline, Garber will be making his exit during the current third season of the CW series. Rumblings about the actor’s exit reportedly first surfaced when the show was wrapping its sophomore run. The rumors intensified over the summer, and while the CW and the show’s producing studio Warner Bros. TV have yet to comment on the news, Garber’s imminent departure was inadvertently made clear in September when it was revealed that Garber would return to Broadway to star in the Tony-winning revival of “Hello, Dolly!” Garber is set to replace David Hyde Pierce as Horace Vandergelder in the stage play, and his first show is scheduled on Jan. 20 next year.

Garber’s departure seems to have been planned ahead of time, as the door was cracked open for his exit in this week’s Season 3 premiere. In the episode, it was revealed that Garber’s Stein is going to be a grandfather. Although the physics professor decided to stay on the Waverider at the final moments of the episode, he only did so under the proviso that he would return to Central City 2017 in time for the childbirth of his daughter Lily (Christina Brucato).

While it’s likely that Stein will be leaving the Legends after the birth of his grandchild, the big question now is how the show plans to keep Firestorm part of the crew when Stein will be apart from his partner Jax (Franz Drameh). Will the show introduce a new character to be Jax’s other half? Or will the Legends scoop a younger version of Stein from the timeline to be part of the team?

Garber made his first appearance as Stein in Season 1 of “The Flash.” Back then, Stein’s Firestorm partner was Ronnie Raymond (Robbie Amell). But after Ronnie was killed in the Season 2 premiere of Grant Gustin-led series, Stein got a new partner in Drameh’s Jax. Soon after, Stein and Jax were recruited by Rip (Arthur Darvill) and became members of the Legends.

“Legends of Tomorrow” Season 3 airs Tuesdays at 9 p.m. EDT on The CW.

Victor Garber as Martin Stein Victor Garber is exiting CW’s “Legends of Tomorrow” to star in the Tony-winning revival of “Hello, Dolly!” on Broadway. Photo: The CW