Group imports during optimise imports.