Remove repeated lines