Updated detect traits to use METAPROGRAMMING_ONLY macro too