Get rid of qualified immunity. Make each and every officer personally liable, for starters.
Other solutions likely also come to mind.
Which means we have to get rid of the lawyers!