GUI-1207: Simplify breadcrumbs generation code on folder/object details page