detect and merge redudent definitions for lighter svg files