Remove readonly ref types