Rolled back the console check in ApiFactory