Remove $log and $cookieStore dependencies