Refactor auto-approval in import()