Captain Marvel was supposed to be in Avengers: Infinity War. But she's not anymore. The role she once served has now been revealed by screenwriter Stephen McFeely. It was recently confirmed that Brie Larson's Captain Marvel will not appear in the upcoming Avengers 3, after months of speculation that she was going to be introduced in the epic battle against Thanos. As it turns out, she was originally slated to appear in the sequel, and was on set, but she was written out to give her a proper introduction in the upcoming standalone movie. Brie Larson will debut as Carol Danvers in Captain Marvel and then show up in the still untitled Avengers 4.

In a new interview, Infinity War screenwriter Stephen McFeely spoke about Carol Danvers and her original role in the movie. As it turns out, she was going to be a foil for Captain America. Danvers was going to represent the optimism that Steve Rogers has lost over the years. McFeely had this to say.

RELATED: Was Yelena Dusted by Thanos' Snap? Marvel Boss Says Fans Will Find Out Soon
"(Captain Marvel is) in some ways the closest to Captain America which is a weird, now rare kind of character which is sort of a person who's right and knows they're right and doesn't really want to hear it when you tell them they're wrong. So, with all these flawed, f***ed up people and Quill - who's a mess - and Tony - who's a massive ego - all contorted, it's fun to get another person with a clear vision in there and going, Shut up."

Though Captain Marvel's storyline in Infinity War sounds like it would have worked, it's probably for the best that her part was written out. There's a lot of ground to cover in the upcoming movie, that has been called Thanos' movie by nearly everybody involved. Infinity War has even been referred to a Thanos origin story, which will even make audiences feel empathy for the Mad Titan. That story, paired with all of the already complex relationships within the Avengers and the meeting of the Guardians of the Galaxy along with the warriors of Wakanda, sounds like there's not a whole lot of room for much else.

It will be best to get our first look at Brie Larson as Carol Danvers in the Captain Marvel standalone movie and then again in Avengers 4. As for her role in the 4th movie, that's all a mystery at this point in time, as is the rest of the plot. It's been said that the movie will be connected to Infinity War, but it is very much a standalone film, according to the Russo Brothers and screenwriter Stephen McFeely.

Captain Marvel is currently filming in California with a timeline that places it in the early 1990s. Brie Larson has been spotted on the set, in her pre-Captain Marvel suit, which is green. The Marvel Cinematic Universe has a lot going on right now, and it's amazing how they're able to juggle everything so successfully. Infinity War arrives in theaters on April 27th, while Captain Marvel arrives on March 6th, 2019. You can read the rest of the interview with Stephen McFeely over at IGN.