Star Trek and Star Wars are arguably not the same genre. Star Wars is a Western.
The same way Game of Thrones is a mafia series.
So's Star Trek
. Especially "Mudd's Women"
. A plot I've seen in more than one Western.
Game of Thrones
takes partial inspiration from The War of the Roses. Was there a mafia in Plantagenet England?