Moving cost to TraitChange.