Automated reorganization of imports