Move docCookie into separate module