Move filtering into a separate function
Move filtering into a separate function

No functional changes.

Signed-off-by: Peter Hutterer <b9c50af7afa7642f6f854434cda9ffe54ece8b85@who-t.net>
Reviewed-by: Chase Douglas <69e02ec421aa70a149511825d897f2549ceee9a2@canonical.com>

eyko/xf86-input-synaptics,gdestuynder/xf86-input-synaptics,mortehu/xf86-input-synaptics,corcoran/xserver-xorg-input-synaptics,sencer/synaptics,felipejfc/xserver-xorg-input-synaptics,Lyude/xf86-input-synaptics,mortehu/xf86-input-synaptics,Lyude/xf86-input-synaptics,felipejfc/xserver-xorg-input-synaptics,nanderson94/xf86-input-synaptics,quadpixels/three-finger-dragging,RsrchBoy/xserver-xorg-input-synaptics,corcoran/xserver-xorg-input-synaptics,sencer/synaptics,ssaavedra/xf86-input-synaptics,felipejfc/xserver-xorg-input-synaptics,nanderson94/xf86-input-synaptics,mmonaco/xf86-input-synaptics,jiixyj/xf86-input-synaptics,jiixyj/xf86-input-synaptics,quadpixels/three-finger-dragging,philipn/xserver-xorg-input-synaptics,ssaavedra/xf86-input-synaptics,philipn/xserver-xorg-input-synaptics,philipn/xserver-xorg-input-synaptics,mmonaco/xf86-input-synaptics,gdestuynder/xf86-input-synaptics,RsrchBoy/xserver-xorg-input-synaptics,eyko/xf86-input-synaptics