Move another class injection into additional method

Please replace `response` variable with a method https://github.com/fs/ruby-science/blob/master/release/ruby-science.md#extract-method