Refactor logic to allow dump of slab sizes