Extract shared rspec feature functions