Changes to the structure of LegacyEffect