Move the code for storing template timeseries results into a strategy object.