Since there is no other use of this function, writing the variables directly into the function instead of passing them as parameters makes the function more readable.
This function has been used for other things in the past. I don't removing something that works, replacing it something less extensible is an improvement.
Since there is no other use of this function, writing the variables directly into the function instead of passing them as parameters makes the function more readable.