def normalize_url_without_bewit(url, bewit):
    """Normalizes url by removing bewit parameter."""
    bewit_pos = url.find('bewit=')
    # Chop off the last character before 'bewit=' which is either a ? or a &
    bewit_pos -= 1
    bewit_end = bewit_pos + len("bewit=" + bewit) + 1
    o_url = ''.join([url[0:bewit_pos], url[bewit_end:]])
    return o_url