WTH when renaming an entity, have to manually modify automations, scenes and scripts

If you rename an entity, you have to manually adjust all the automations etc. that are related to it. It would be great if home assistant was able to adjust the automations automatically so that they continue to work with the renamed entity.

Closing duplicate. Please vote and follow here: WTH is there no "refactor" functionality when changing an entity name?