Protip to anybody dealing with a bureaucracy, no matter whether it's automated or human-based, public or private, fair or oppressive: don't look weird. Bureaucracies function by finding the right category and using the appropriate process for the category. If they can't place you in the right category, you may be in trouble. To avoid that, you can try using products and services that signal the right category, even when they are more expensive and less convenient than the alternatives.
Of course, that doesn't help if you don't just look weird but actually are weird. Spending a lot of time overseas is not weird in itself, because it's common enough. Some specific international situations are weird. Because such situations are rare, it's not cost-effective for the bureaucracy to develop processes for dealing with them fairly.