Move cookie routines to splat.