Remove unused code from spec_helper