private function encodeUserSessionTerminatedResponse(UserSessionTerminateResponseInterface $action_result, ServerRequestInterface $request, ResponseInterface $response)
    {
        $response = $this->getCookiesProvider()->remove($request, $response, $this->getUserSessionIdCookieName())[1];

        return $this->encodeArray($action_result->toArray(), $response);
    }