refractoring model package