Make it possible to leave bones on certain levels that have a branch entrance in them (mainly mine entrance, sokoban entrance, quest), by virtue of removing the branch entrance before saving it as bones. If branch upstairs are removed in this manner, replace it with a pile of rocks; if downstairs are removed in this manner, replace them with a pit.