[Refactoring] Reworked import sorting.