code: def _get_expanded_active_specs(specs):
      
      _filter_active(constants.CONFIG_BUNDLES_KEY, specs)
      _filter_active('apps', specs)
      _expand_libs_in_apps(specs)
      _filter_active('libs', specs)
      _filter_active('services', specs)
      _add_active_assets(specs)
docs: This function removes any unnecessary bundles, apps, libs, and services that aren't needed by
      the activated_bundles.  It also expands inside specs.apps.depends.libs all libs that are needed
      indirectly by each app