I don't have a good answer.
Off the top of my head the solution is found in the relation of the 'off-shored' - domestic or foreign - workforce to the company. If the worker receives a certain percentage of their income from a firm then they are to be counted as a 'direct' employee. Just to be a jerk I would set that percentage very low, such as 33% or even 25%.