Extract the patch that needs to be applied from the documentation and move it to a separate file. Closes #17659.