Optimize imports to remove wildcards.