If this is about the toolbar HTML being replaced by new toolbar HTML, we should only introduce the function when there is actually a path that would cause this can happen. On top of that, all of our event handlers should be `live` event handlers, which means that replacing the HTML shouldn't require the event handlers to be re-initialized.

If this is about the toolbar HTML being removed because the widget is removed, it should be folded into the remove widget discussion.