[TASK] Deprecate EnvironmentService::isEnvironmentInCliMode