For any SVG editing I highly recommend Inkscape. It’s a bit clunky on macOS as it needs to run in the X11 environment - but it’s an incredible piece of software. Albeit being free and open-source, it can definitely rival some commercial competitors.
To clean-up an SVG with inkscape, open it and select File -> Clean-up Document and then re-save. There is also a “Path -> Trace Bitmap…” feature where you can easily convert any embedded bitmaps to paths.
