State Republicans move to make attorney general an elected office