Remove cookie metadata from hash function