Migrate to OFApplicationDelegate