Clean imported code for pass compile