pulse: remove code duplication for entity list creation