Move saveReactionToKineticsFile to its own method

This will make it easier to change where it's called.