I didn't mean that as a criticism.

This patch is the only significant time I've spent in the bundler code base and I've done what I can to match the conventions and idioms I could identify. I'd have preferred not to introduce any duplication, but I didn't see any way to do so without doing a deeper refactoring which isn't something I'm comfortable doing on a new-to-me code base.