Minor refactoring of slab generation code.