Removes some obsolete optimizations.