Refactoring build_filters_and_groups. Removing EI related logic, using regex instead of string splitting, moving show filter logic to new separate function.