global

def self.caller_stack

def self.caller_stack
  stack = []
  Thread.each_caller_location do |location|
    stack << location unless location.path.include?('gems/shopify-money')
    break if stack.length == DEPRECATION_STACKTRACE_LENGTH
  end
  stack
end