'Transform the event with legacy fields and other necessary
modifications.'

def transform(self):

    if self.is_legacy_event:
        self._set_legacy_event_type()
        self.process_legacy_fields()
    self.process_event()
    self.dump_payload()
