Kernel tree cleanup