I have several functions doing similar things, inside their implementations, the parameters are the same, but they call different methods.
I want to create one help function to make the structure easier, and reduce the duplication. I heard template might be one solution. But I am not sure how to use it in this case.