The best thing is probably something similar to what people at Google have done, with respect to Project Maven and the China stuff, as well as the recent walk-outs.
If you just leave, nothing changes.
https://www.nytimes.com/2018/06/01/technology/google-pentago...
https://www.nytimes.com/2018/08/16/technology/google-employe...