Set legacy flag on TP, YU and AN country codes