Factor out filter model for multiple app support.