Refactoring before(:each) block