def _get_expanded_active_specs(specs):
_filter_active(constants.CONFIG_BUNDLES_KEY, specs)<EOL>_filter_active('<STR_LIT>', specs)<EOL>_expand_libs_in_apps(specs)<EOL>_filter_active('<STR_LIT>', specs)<EOL>_filter_active('<STR_LIT>', specs)<EOL>_add_active_assets(specs)<EOL>
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