Move common setup to spec_helpers.js