Extract some common version functionality into a function
Extract some common version functionality into a function

Some code was repeated many times. That was bad. It is now in a function. This is less bad.

IATI/iati.core,IATI/iati.core