Actress Natalie Dormer will not promote her upcoming drama, The Lady, in which she portrays Sarah Ferguson, because of the Duchess of York’s connections to Jeffrey Epstein. She has also said she will donate her salary from the series to charities focused on child abuse, Variety reports.

Ferguson was tied to Epstein through her former husband, Prince Andrew (they married in 1986 and divorced 10 years later). Andrew was a longtime Epstein associate, who settled a high-profile sexual assault case with one of the disgraced financier’s most prominent accusers, the late Virginia Giuffre. (Andrew has long denied Giuffre’s allegations.)

While The Lady is not about Epstein or Prince Andrew, Dormer appeared to make her decision following the recent leak of an email Ferguson sent Epstein in 2011, apologizing for comments she made about him after his 2008 conviction for soliciting prostitution from girls as young as 14. 

“When I agreed to take the role in The Lady, I knew portraying the script’s Sarah Ferguson would require nuance,” Dormer said in a statement. “People are layered, their journeys are full of highs and lows, and as an actor, my job is to lean into those elements and bring them to life with honesty and empathy. Since completing the project, new information has come to light that makes it impossible for me to reconcile my values with Sarah Ferguson’s behavior, which I believe is inexcusable. For that reason, I will not be taking part in the promotion of the project.”

She added that she would donate her salary to groups like the National Association for People Abused in Childhood and the Centre of Expertise on Child Sexual Abuse.

The 2011 email from Ferguson to Epstein was leaked last weekend, first appearing in The Daily Mail. In the letter, Ferguson “humbly” apologized to Epstein, whom she called a “dear friend.” The letter was reportedly sent after Ferguson distanced herself from Epstein in an interview with The Evening Standard, where she also responded to recent reports that Epstein had given her over $15,000 to cover some debts.