Setting up a detrending module [ci skip]