Use traits correctly

Traits add methods to the object, not the hash reference.