Moved the log filter to a separate function, in a new class.