Refactored using enum for filter config