Drop redundant prefixes