Reduce complexity of Transaction::auto_filter