Remove redundent code.