def clean_extra_expose_des_motifs(html):
    """
    the budget related texts have an exposé des motifs per article
    at the depot step, we remove all of them except the last one
    to make the later parsing easier
    """
    before_expose, after_expose = [], []
    last_expose = []
    expose = False
    count = 0
    we_are_inside_an_expose_table = False
    for line in html.split('\n'):
        if '>Exposé des motifs' in line:
            expose = ['']
            count += 1
        elif line and expose:
            if '<table' in line:
                we_are_inside_an_expose_table = True
            if '</table' in line:
                we_are_inside_an_expose_table = False
            if not we_are_inside_an_expose_table:
                if ('"text-align: center">' in line or '<b>' in line or 
                    '</a>' in line or '<a name=' in line):
                    last_expose = expose
                    before_expose += after_expose
                    after_expose = []
                    expose = False
        if not expose:
            after_expose.append(line)
        else:
            expose.append(line)
    if count > 3:
        return '\n'.join(before_expose + last_expose + after_expose), True
    return html, False
