This won't compile because resulting type is Transactor
def withIsolationLevel(xa: HikariTransactor, level: TransactionIsolation): HikariTransactor =
Transactor.before.modify(xa, _ *> connection.setTransactionIsolation(level))
It would be helpful if transactor type was preserved.