Gods, I love LaTeX. I wrote something that I wasn't sure would work, and then hacked one more piece that felt like cheating and I expected it to fail, but no, turns out \newcommand just does rewrites, so everything works out of the box as I dreamed up. Lovely!