There was a British TV show called "Bring Back Star Trek" in which Grace blamed her character getting written out on positive discrimination, or, as you say in America, affirmative action.
If I'm honest, it made uncomfortable viewing for me.
Huh? How would that have worked? She wasn't replaced by anyone. No one got her job. They eliminated the part all together.