Since we only use it here there is no need for the extra function.