Get rid of redundant lines