Remove this and use a class (model), ie:

```ruby
class Product < ActiveRecord::Base
  def self.out_of_stock
    Rails.cache.fetch(...)
    #...
  end

  def competing_price
    #...
  end
end
```