Move generic filters related functions to separated mixin.