Replace single "static friend" declaration with a free-standing pre-declaration of the static function