Extract out leaf categories