git-gui: Refactor the delete branch dialog to use class system