Move cookie creation into cookieUtils