Refactor the accelerometer filtering pathway to make it clearer and shorter.