Simplify preferredLocalizations code