DeclContext::KindTrait was not meant to be used outside of DeclContext::CastTo (cause...