can we save a few changes here if we change costcontrol.getApplicationMode(settings) implementation?? instead of changing every call to that function?