Adding a filter to _get_bare_metal_package_id() to improve efficiency