Banks have been actively seeking ways to distance themselves from the oil and gas industry in recent years under growing pressure from pro-energy transition activists.