You mean having one longer function like it is currently?

Rob had asked me to abstract the function
so I made the one function into several
I think it's better for maintainability and there might be more of this in the other files in the directory.
I was going to look, but I haven't yet. More work than I want to do for this PR right now

Relevant PRs to this:  #307 #311 
there are some outdated comments that are on the subject