Time's Up - 2018 Tribeca Film Festival
Credit: Astrid Stawiarz/Getty Images

Mira Sorvino is exiting a CBS drama series amid a decision to rework the project.

The Oscar-winning Mimic and Mighty Aphrodite actress was cast as a series regular in a legal drama pilot called The Code earlier this year. The move received additional media attention as it was coming on the heels of Sorvino’s claims of being sexually harassed by Harvey Weinstein and saying the producer had her “blacklisted” by the industry. (He denied all claims in a statement to EW.) The pilot casting was seen as a comeback of sorts for the actress.

After seeing the pilot, CBS decided to order the project to series on Friday for next season — yet will also recast two roles (co-star Dave Annable is also out).

The move isn’t particularly unusual; broadcast networks often switch out actors on new projects after seeing a pilot; it’s part of the process of trying to find the right combination of talent for any given show.

The Code logline: “The military’s brightest minds take on our country’s toughest challenges – inside the courtroom and out – where each attorney is trained as a prosecutor, a defense lawyer, an investigator – and a Marine.”

Costars Anna Wood, Ato Essandoh, Phillipa Soo, and Raffi Barsoumian remain on board.

Sorvino has other projects in the pipeline, such the upcoming Fox comedy film Stuber, a guest star role on season 3 of Crackle’s StartUp, and a co-star role in AT&T’s Audience Network series Condor.

The Code is one of several CBS new show pick-ups for fall including a Magnum P.I. reboot.