Shift static hook helper into a global component