Rename method url_to_branch_with_worse_code to url_to_branch and remove unnecessary parameter from it