Should refactor so we can create a custom action for merging the svg badges. I'd need to break this apart from the code that makes the badges.