(settings_data.c) Refactor ENFORCE_RANGE