When switching to a repo that was open before, the context tree is reused, so before adding keybinding functions to those contexts again, we need to clear the old ones.
After switching to another repo and then back to the original one, all keybinding suggestions in the status bar are shown twice.