This article is part of SVG clean up article.
After initial clean up and validation, changing icon palette, the icon is optimised.
Optimisation is done by SVGO. Not much to write about it, you can try SVGO optimisation yourself using SVGOMG project.
Optimisation is done using runSVGO() function from Iconify Tools, followed by deOptimisePaths() to make sure icons are usable everywhere.