Amy Schumer and Anne Hathaway are out — and Margot Robbie is in as Barbie.

Mattel and Warner Bros. have announced that the “I, Tonya” Oscar nominee is set to fill the role once announced for both actresses, CNBC’s Carl Quitanalla reports via Twitter.

At a 2017 Cinema Socity and Svedka party for her film “Fun Mom Dinner,” director Alethea Jones seemed to confirm rumors that Hathaway would star in her live-action Barbie flick. At the time, Jones was overheard talking about casting Hathaway in the Sony movie after Schumer dropped out due to scheduling conflicts.

The big-screen adaptation of Mattel’s iconic toy line was originally expected to start production in June 2017, but Schumer’s calendar was too packed with a lengthy promotional tour for her Fox comedy “Snatched,” as well as a scheduled shoot for Rebecca Miller’s “She Came to Me” opposite Steve Carell.

Amy and Anne’s dual dropout is Margot’s double gain — and now the 28-year-old Aussie actress can add a different kind of action figure alongside her already popular Harley Quinn doll from the “Suicide Squad” franchise.

The Barbie film is scheduled to be released sometime in 2020, and is being hyped as a potential lifeline for the financially strained Mattel. The 74-year-old company behind Barbie, Hot Wheels and Fisher-Price saw revenues dip from $6.5 billion in 2013 to a projected $4.5 billion this year, the New York Times reports. Plus a profit of more than $913 million turned into an expected loss of $418 million, dragging the company’s stock down 73 percent to a nearly 10-year low.