Move spec setup code to the spec helper