I know, this PR doesn't aim at refactoring. Just wanted to propose that since this function goes into an already refactored module whereas any other function moves to the new module `path`.