Refactor and enhance import excel.