Extract ghost leaf manipulation to `exorcise`.

Extracted the portion of `deleteGhost` that shifts the ghost and writes
the new position array to the leaf page file into its own function. This
function will be called from `mergeLeaves` when a ghost is present in
the left leaf page of the merge.