Replaced traits attribute with a view attribute