Remove some redundant code such as detrending code in datapoint.py