import re


def clean_dirty(value):
    """Given a dirty literal string, clean up repeated occurrences of
    '[object Object]."""
    return re.sub(r'(?:\[object Object]){2,}', '[object Object]', value)