Refactor show breadcrumb logic (no changes to functionality) #3848

#3848 

This PR is simply code refactor with no change to existing functionality.