Cleans up import analysis.