Move function to sort scala imports