remove spurious imports and dependencies