Remove unused model elements