The `stub!` method is a code smell, it should be changed so that the stubbing happens in the client shared context automatically.

Currently, the method `stub!` stubs methods on many doubles but the let statements that define the double should do this individually for each to eliminate this method.

Currently:
```ruby
let(:node) { double('node') }

def stub!
  #...
  allow(node).to receive....
  #...
end
```

Change to

```ruby
let(:node) do
  node = double('node')
  allow(node).to #...
  node
end