Removes redundant code.