redundant code replaced with utility function
redundant code replaced with utility function

Signed-off-by: Norbert Csaba Herczeg <278104f57a991b201eb24148c3a1dc07f75a9cb8@gmail.com>

noherczeg/breadcrumb