remove duplicate line from a spec