I hear that while it can be depressing to stay while the department is transferred overseas, companies will often sweeten the deal to make it worth your while- despite the fact they are getting rid of you, they still need the transition to happen gracefully, and to transfer knowledge to the new team.