Introduced a factory to consolidate the construction bits for creating
TraitChangeEvents.