1. Removal of unnecessary types