Remove some redundancy codes