Cleaning up Transformer and BehaviorApplyEvent