Maybe add a TODO to ensure that this still works correctly in all cases even when a label value contains the delimiter (e.g. escape the delimiter in the label value or something similar).