Reduce passing arguments to helper functions by converting them to arrays.