Remove unnecessary code from specs