def replace_accumulated_errors(track, logs, log):
    """Replace accumulated track errors."""
    for error in logs[0].track_errors:
        if track in log.track_errors[error]:
            continue
        for i, original_track in enumerate(logs[0].track_errors[error]):
            if track == original_track:
                logs[0].track_errors[error].pop(i)
