Is checking INHERITABLE_METADATA just an optimization? Or was it a bug? That hardcoded list makes me very nervous.