I disagree, the BBC has shown itself more than capable of getting shot of people who were to troublesome or too costly in the past. Nobody is indespensible, not even Moffat.
But nobody is saying she was fired. She quit.
The BBC have made their willingness to give Moffat a lot of leeway pretty clear over the past two years.