How about maintaining software patents (which have merits) but making it so the only way to acquire a patent is to acquire the company that owns it?
This would completely kill the patent troll business while adding value to startups that file innovative patents.