Removes unused code from spec