Remove extra lines of code that are duplicated else where.