Generically deal with enums and country codes