Move XRegExp hack to a better place.