Refactoring integration specs