How about a best way to write her out of the show contest. Personally I would like to see her die, not because I do not like the character, but because of how it develops Anakin. I think Anakin offers for her to stay with him during a battle, and she insists she can take care of herself. Then in a heroic effort to save hundreds or thousands of lives she sacrifices herself for the good. Anakin leaves the battle knowing that if he insisted that she stay beside him that she would have been alive. That then sends him into a ball of rage that terrifies the other Jedi, then he torment gets buried inside him, and it would be understandable why no one would want to bring it up in front of him. It makes for a great final season episode.