Split out the core and app delegate.