If 2 packaged need to use same functionality, it can be better to create new package "utils" and required it in both listener and replay.