protected function stripApiVersion(string $action): string
    {
        if (mb_strpos($action, 'api-v') === 0) {
            $action = preg_replace('/^api\-v[0-9]+[0-9.]*\./u', 'api.', $action);
        }
        return $action; // Without an API version.
    }