Move creation of Bpi client object in one place.