The SSD does that on its own. What’s missing is telling it which parts of the flash are currently unused, so it can reuse them directly. But modern SSDs will still move around data that has not been written for a long time to more evenly spread the wear.
Anyway, all studies on SSD say that the wear is largely a non-issue. You would need to write dozens of gigabytes of data per day to your disk to risk problems after 2 or 3 years of operation. And that’s with the low cost ones.
The failure rate is similar to hard disks now, and replacements are not very costly. As usual with data storages: make backups, because things will always go wrong in one way or another.