Remove unnecessary properties from TraitAttribute.