Refactors specs.