In my opinion, this change should not take place here. The method is called ```_check_dependencies()```, which suggests it just checks for compatibility. This looks like a side effect to me.