Refactor how Application objects work.