refactor globs