[#31517] Reduce duplicate code in category feeds. (Fix #1559)