Convert line module to use grouped timeseries