Adding trait support to the namespace element