Remove duplication on several lines