Remove some if statements in `receiver_connected/disconnected`.