Remove extra register_pattern