Refactor cookies defaults