Decouple TimeSeriesDefinition from a database