Looking at svg minimization options, I found svgo https://github.com/svg/svgo . I successfully tried it with svg generated from illustrator, however, when I run it against the following, the resulting file is completely blank.
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol id="beaker" viewBox="214.7 0 182.6 792">
<!-- <path>s and whatever other shapes in here -->
</symbol>
<symbol id="shape-icon-2" viewBox="0 26 100 48">
<!-- <path>s and whatever other shapes in here -->
</symbol>
</svg>
I haven't been able to find a reason why this occurs.