Any large business in Russia cannot exist independently of the state - even if the relationship is informal. Particularly, if the company is related to mass media and surveillance. Yandex is a state-controlled company even if the legal structure doesn't indicate this.
I would interpret this divestment as Russian intention to use Yandex as a tool for doing foreign influence, similar to RT or their social networks manipulation. It should be sanctioned.