Moved tree publishing to core.