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: usages.rb
    path of file: ./repos/i18n-tasks/lib/i18n/tasks/command/commands
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module I18n::Tasks
  module Command
    module Commands
      module Usages
        include Command::Collection

    
        def remove_unused(opt = {}) # rubocop:disable Metrics/AbcSize
          unused_keys = i18n.unused_keys(**opt.slice(:locales, :strict))

          if opt[:pattern]
            pattern_re = i18n.compile_key_pattern(opt[:pattern])
            unused_keys = unused_keys.select_keys { |full_key, _node| full_key =~ pattern_re }
          end