There are hundreds of ways. Sign Peterson at $4M per, and sign the best reliever you can get for $4M.
But that's not really how a salary budget works; many of our players will get increases in 2023, and the $8M will just get dissolved into the overall budget. They could try to extend someone and the money goes there.