code: def validate(cls, full_config: Dict[str, Any]) -> Optional[Dict[str, Any]]:
          
          config = {}
          if 'commands' in full_config:
              config['commands'] = full_config.pop('commands')
          if config and 'commands_prefix' in full_config:
              config['prefixes'] = full_config.pop('commands_prefix')
          if config and 'commands_ignore_mention' in full_config:
              config['ignore_mention'] = full_config.pop('commands_ignore_mention')
          return config
docs: Validator for filters factory
  
          From filters factory this filter can be registered with arguments:
  
           - ``command``
           - ``commands_prefix`` (will be passed as ``prefixes``)
           - ``commands_ignore_mention`` (will be passed as ``ignore_mention``
  
          :param full_config:
          :return: config or empty dict