Remove using of url_to_branch method in CLI class