should remap_labels have "const std:map&" before or not? Right now its copy by value.