I think it's good to keep it here. We can rename the function though. How about `refreshType` ?