common: New function split_fields.