Remove superfluous lines