Refactor Listener::react_to