Cleanup Imports and References.