Remove duplicate prefix.