Bobplates (Metals, Chemicals and Intermediates) runs this command automatically in "on_configuration_changed" script, which runs every time you add/remove a mod, or change a mod's settings.
The main reason why it's on here any not everywhere, is because Bobplates is considered the base mod, and you only really need to run it once.
It also screws up other mods that use scripts to unlock things, so if they know when it is triggered they can write around it.