Simplify cookie parsing