With Microsoft its probably mostly (3), with maybe some degree of (2), with (1) maybe, especially in the political salience, being a plus in the eyes of some decision-makers but not really driving the decision.
There are firms (and public agencies) where the relationship between those factors is very different in driving RTO mandates.