REFACTOR: removes duplicated function (PR #9662)

GitHub