Separate handlers from MQTT connections