def split_field(split_on):
    """Returns a function that splits input text, based on given parameter."""
    def _splitter(text):
        return map(str.strip, text.split(split_on))

    return _splitter