[Cookie] Move parsing to a dedicated parser