Externalize pipe-event module.