Eliminate unnecessary prefix for endpoint id.