Adding trait support to the package element