It might be worth calling __wt_btree_leaf_create() instead, here -- maybe it's time to clean up, maybe rec_merge, this new function and the code in rec_write could call a pair of functions, __wt_btree_leaf_create() and a new function __wt_btree_intl_create()?