Improve dispatcher API for import parsing