MQTT factorisation