Refactor hive_to_csv's parameters