Refractoring of mtree