Reductions in painkiller prescribing and increases in overdose treatment have contributed to a decline in opioid-related deaths.