Import Event from its own package: update generated code accordingly.