```ruby
def simple_command(v, opts = {})
  Expeditor::Command.new(opts) do
    v
  end
end

def sleep_command(n, v, opts = {})
  Expeditor::Command.new(opts) do
    sleep n
    v
  end
end

def error_command(e, opts = {})
  Expeditor::Command.new(opts) do
    raise e
  end
end
```

Change global methods to module methods
user
```ruby
module CommandHelpers
  def simple_command(v, opts = {})
    Expeditor::Command.new(opts) do
      v
    end
  end

  def sleep_command(n, v, opts = {})
    Expeditor::Command.new(opts) do
      sleep n
      v
    end
  end

  def error_command(e, opts = {})
    Expeditor::Command.new(opts) do
      raise e
    end
  end
end

RSpec.configure do |c|
  c.include CommandHelpers
end
```
assistant