Removed code duplication in filter intents.