Allow customizing the logic to get the country for hinting