Dispense with the charade of primaries.
Primaries usually provide a majority candidate that the voters and party coalesce around. But you have to accept that there are times when it fails to give a majority to anyone.
Then what?