Optimized `SvgPath.parsePath`.
Code refactoring