For the Maltese revolutions, Barbary States makes a sliver of sense since they controlled Tripoli for a short period.
I still don’t understand the Hungarian connection.
Romania would be a better option since Moldavia had a Maltese king and was allegedly a puppet state during his rule. The article below says “the Order may have gained a puppet state in Moldavia, which was ruled by the Malta native Iacob Heraclid until 1563.”