KNOX-314 refactor dispatch and add hive specific one