splat filter code cleanup