Fix imports.
Detect redundant primitives.