trimModelList code cleanup