Detrending is a very common preprocessing step in econometrics, with various you can requirements