Refactor initAppModel to split apart two different levels of error checking