Refactor specs with method