refactoring : extracting magic log filter return values