Remove redundancy code.