Created model and service to persist distinct filter.