Convert the template design pattern timeseries model to a function with input and storage strategy objects.