Move duplicated code to @Before to clean up code