Remove code redundancies.