Refacto code metrics model