Cleanup layer tree