Removing global variable -refs #6913