Extracted the SVG path calculations into their own library.