Refactor svg-builder helpers

 - Move helper functions that generate XML attrs into generators/ files.
 - PORK: Fix lint errors