[Runtime] Refactor ApplicationService::Install().