Reduce duplicated lines in node-id-map