Warning when a variable changes its effective 'context'

I think it would be beneficial to display a warning when a variable changes its effective ‘context’ due to changes in roles etc.

Example:

A variable is set which uses a combination of a certain environment and certain role could be changed to something completely different if for instance the role changes name and is no longer available.