Moved tree to model conversion to own subpackage.