Stop returning app from createApplication at the beginning of the call.