code: def setup_legacy_graph(native, options_bootstrapper, build_configuration):
      
      bootstrap_options = options_bootstrapper.bootstrap_options.for_global_scope()
      return EngineInitializer.setup_legacy_graph_extended(
        bootstrap_options.pants_ignore,
        bootstrap_options.pants_workdir,
        bootstrap_options.local_store_dir,
        bootstrap_options.build_file_imports,
        options_bootstrapper,
        build_configuration,
        native=native,
        glob_match_error_behavior=bootstrap_options.glob_expansion_failure,
        build_ignore_patterns=bootstrap_options.build_ignore,
        exclude_target_regexps=bootstrap_options.exclude_target_regexp,
        subproject_roots=bootstrap_options.subproject_roots,
        include_trace_on_error=bootstrap_options.print_exception_stacktrace,
        execution_options=ExecutionOptions.from_bootstrap_options(bootstrap_options),
      )
docs: Construct and return the components necessary for LegacyBuildGraph construction.