Remove usage of stub and stub_chain.

Preparation for rspec update.
Remove usage of stub.

Preparation for updating rspec.
Remove usage of stub_chain.

Preparation for updating rspec.
Remove usage of stub.

Preparation for updating rspec.