Refactor the PMI configure check logic to be a lot cleaner and simpler.