Actually, at least around here, if it has to be inspected, (as in when it it first built or installed), then yea you have to hire it done unless you have the proper training and certificates/license, but once it is installed, and inspected then you can do whatever you want or need to do as long as it isn't going to require another inspection.
So in your case, even installing a new heater, I wouldn't see why you can't DIY, shoot, cut the power, turn off the gas, (hopefully there is a shut off valve close to the heater), disconnect everything, swap them out and reconnect everything, and VERY IMPORTANT: TURN THE GAS ON FIRST, and use soapy water to check for leaks, if NO LEAKS then turn gas off, turn on power, check to make sure there are no shorts, Ect, if not then turn gas back on and double check EVERYWHERE for leaks, if none then fire it up.
So in your case, even installing a new heater, I wouldn't see why you can't DIY, shoot, cut the power, turn off the gas, (hopefully there is a shut off valve close to the heater), disconnect everything, swap them out and reconnect everything, and VERY IMPORTANT: TURN THE GAS ON FIRST, and use soapy water to check for leaks, if NO LEAKS then turn gas off, turn on power, check to make sure there are no shorts, Ect, if not then turn gas back on and double check EVERYWHERE for leaks, if none then fire it up.