I wanted to avoid having to do this, but I don't see another nice way for us to generate the patches otherwise.