Refactoring rspecs.