Remove some unnecessary code.