Some simplification to getFilteringFields