Tidies up some code duplication within the mux protocol handler. Move some of the logic into Mux, remove legacy Spawn Pdu to reduce more duplication. I want to dedup some of the similar logic that exists in the gui spawn implementation as well in a follow up.