Streamlining code for calculating heat for HeatProducers.