Moved TreeRegistry to API