Refactor show-branch