Not blocking on this, but it seems a bit confusing to name the second parameter without using it. (The name `parts` suggests that the function accepts an array of strings as the second argument.)