def strip_script_styles_from_bs(bs):
    """
    Strip ``<script>`` and ``<style>`` tags from a BeautifulSoup object

    Args:
        bs (bs4.BeautifulSoup): BeautifulSoup object
    Returns:
        bs4.BeautifulSoup: BeautifulSoup object with tags removed
    """
    # bs = bs.copy()
    for tag in ("script", "style"):
        for elem in bs.find_all(tag):
            elem.extract()
    return bs