Someone who has a contract to work as a public defender will be assigned by the court. They will get very strict on not letting them withdraw. Admonish her.
If they get to trial and she acts out, there are several remedies via Illinois v Allen
en.wikipedia.org
The judge may:
Bind and gag the defendant, thus keeping him present in the courtroom.
Cite the defendant for criminal or civil contempt.
Remove him from the courtroom until he pledges to reform his conduct.
If it’s prior to trial, there is probably similar precedent, but I am not familiar with it off the top of my head.