Cleanup regex instantiation code.