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: hash.rb
    path of file: ./repos/graphiti/lib/graphiti/util
    
    the code of the file until where you have to start completion: module Graphiti
  module Util
    # @api p
    
      def self.include_removed?(new, old)
        new = JSONAPI::IncludeDirective.new(new).to_hash
        old = JSONAPI::IncludeDirective.new(old).to_hash

        old.each_pair do |k, v|
          if new[k]
            if include_removed?(new[k], v)
              return true
            end
          else
            return true
          end