Hygiene: Remove last non-test related use of writeCokkie/readCookie

Remove the functions and the test for it, too.

Change-Id: I35efb109f1a55be096b358b1b69f35bd10612c09
Merge "Hygiene: Remove last non-test related use of writeCokkie/readCookie"