Why include config at all if it's unused ?  This is a static function, only called from this file, not used as a call-back that needs a specific signature ...
Do you have plans to further complicate this function in ways that shall need the config ?
Even if so, you can always add this parameter when you do that ...