Refactors braintree api provider constructors