Whitehaven refinances with $1.2bn facility