Remove `RegExp` memoization.