Invoke Code - Target Code Changed - Error

Hi! Let’s say I have an automation (1) that invokes another automation (2). Then I change the automation (2). I run automation (1) again and (1) does not work according to the latest version of automation (2).
To fix this, I have to delete every single invoke code of automation (2) and just put another one. Is there a faster way to do this? Can it update automatically somehow?

Bonus: Also if I change the location of automation (2), every automation using (1) stops working. Any way to update them automatically without doing the same as above?