It's not secondary when that has been his goal since pre-timeskip. And he even tells his men to shut up and follow him. He still is aspiring to become Pirate King, nothing really indicates otherwise. He has a scheme to climb to the top. What was the Rocky Port incident and why was that important enough to make him a Shichibukai? If anything, defeating Doflamingo was killing 2 birds with 1 stone. His vengeance took over since he began prioritizing Doflamingo way more since the initial plan of getting him resign his status as a Shichibukai went up in smoke. And once again, he's not abandoning his crew as he has no reason to follow Luffy when their goals put each other at odds with one another.
I'm well aware people think that a new crewmate should be someone Luffy has been aware of for a while, but Jinbe had built that relationship with Luffy since pre-timeskip. Hell, Luffy couldn't even remember who Marco was till Robin reminded him his head looked like a pineapple. He's a very strong ally to have and practically acted as a surrogate leader of the Whitebeard Pirates since he's always been on the forefront.
I'm well aware people think that a new crewmate should be someone Luffy has been aware of for a while, but Jinbe had built that relationship with Luffy since pre-timeskip. Hell, Luffy couldn't even remember who Marco was till Robin reminded him his head looked like a pineapple. He's a very strong ally to have and practically acted as a surrogate leader of the Whitebeard Pirates since he's always been on the forefront.