Split setup code into separate spec helpers