Eliminate parse_endpoint/0.