The How part (5) - Removing redundant nodes from OSM files - http://droftware.github.io/removing-redundant-nodes/