TEPHRA-43 Move ScanType logic inside TransactionVisibilityFilter