Removes old redundant code.