Move Api and ConsumerCred classes up to ctor