Revert "feed: remove unused flatten"

This reverts commit 3bdae8f718ce7ad1183204de243eef0942ba1aa7.