Since the params attribute is only used in one method call, I think this class could be simplified by passing params as an argument to `clean_malformed_array_params` instead of holding it as an instance variable. Although not really relevant since the class is short-lived anyway, doing it like this also causes this params hash to be kept around after initialisation.