Update for 5.0.4. Remove upgradeApp method