Actually, _remove_consecutive_dup , make it private