Replace deprecated `EventListener`