Remove unused utility function