Get rid of referrences to Application.