I would probably push this out to a separate function like publish_to_channel(...)