Fix `NameError` for `requires_system_grains`