Removing Credentials::factory(). Moving credential consts to Provider.