Remove some redundant code.