Move function PushPeerJoinEvent into function-creator