spec stubs, refactoring