Separate out component and task events in the core.