def parse_chain(chain):
    """Parse a filter chain into a sequence of filters.
    """
    parts = []
    for p in chain.split(","):
        p = p.strip()
        if p.lower() == "none":
            continue
        if len(p) > 0:
            parts.append(p)
    return parts