Foxconn is getting ahead of the curve here. They know its going to happen and so its better they do it and keep the client than letting others get in to the game.
Indian consulting companies use the same strategy. They have offices all over the world and actively go to places where the wages are low and set up shop themselves.