I gave up and rewrote the entire project from scratch, discarding the
separate modules and instead creating a gigantic singleton structure
with only one repeating path. On the other hand though it works without
failure, so it's got that going for it.