Refactor the breadcrumbs function to use native WP functions.