Tidy ASSR filtering code