Refactoring and translation for filters