extract `transaction_isolation_levels` method contents to a constant

extract `transaction_isolation_levels` method contents to a constant