You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: weight.rb
    path of file: ./repos/spree/core/app/models/spree/stock/splitter
    
    the code of the file until where you have to start completion: module Spree
  module Stock
    module Splitter
      class Weight < Spree::Stock::Splitter::Base
        attr_reader :packer, :next_splitter

        cattr_accessor(:threshold) { 150 }

        def split(packages)
          generated_packa
    
        def split_package_contents_over_threshold(package)
          package.contents.flat_map do |content|
            if content.weight > threshold && content.splittable_by_weight?
              split_content_item_over_threshold(content)
            else
              content
            end
          end