Remove `cookEntry`.

Move `cookEntry` into `writeEntry`.

See #364.