Drop common locality prefixes