I'd love to refactor this method sometime, but that's not your fault. It's a mess of my own making.