Refactor breadcrumbs helper implementation