refactors feed generation API
adds more refactorings for feed generation API