Performing this method extraction would get us another benefit. Seeing as we reach pretty deep into the item structure to fetch the `feed_url` etc., we could make this method return instances of a new (possibly private) `Item` class, which would be responsible for extracting all this information. Something like this maybe:

```ruby
def self.import(starredjson_contents)
  # ...
  self.items_from_json_content(starredjson_contents).each do |item|
    feed_url = item.feed_url
    # ...
  end
end

def self.items_from_json_content(json_content)
  JSON.parse(json_content, symbolize_names: true)[:items].map do |item_hash|
    Item.new(item_hash)
  end
end

class Item
  attr_reader :feed_url, :title, :url, :content, :summary, :published, :id

  def initialize(params)
    @feed_url = params[:origin][:streamId].sub('feed/', '')
    @title = params[:title]
    @url = params[:alternate][0][:href],
    @content = params[:content].try(:[], :content)
    @summary = params[:summary].try(:[], :content)
    @published = Time.at(params[:published])
    @id = params[:id]
  end
end
```