Small code cleanup
Clean up the part-type code during building mesh generation