Update notes for submitted changes

* Move common code into a separate function.