def remove_prefix(text, prefix):
    """
    Removes the `prefix` from `text`.
    """
    if text.startswith(prefix):
        prefix_len = len(prefix)
        return text[prefix_len:]
    return text