Remove some repeated lines.