Remove unnecessary setting of result_class