refactor(syndication): extract modal code