Refactored `privileged` checking