DRY up cookie construction