Refactor code 1

Refactor code in CookiesOperation class