Remove references to LEAVES