Hmm. It seems like your automation / deployment system would be a better place to handle that substitution, as they're more suited. How are you managing instances now?