Just deleting files so I can comment.

Don't merge this, since it's already committed I can't comment. Generally you review code before it gets merged into master. I just like using github for comments.
This seems jank to me as you're passing around an array that is unclear what it may contain (imagine something really complicated). Seems like a good candidate for three separate functions.