Rationalize variable references.