Move RSpec 2 code to its own module