Move fetchFeed function to a dedicated helper