Unify some "kernel or kext" conditionals.