pothos-library: cleanup filtering for completed flow logic