Remove redundant URI casting.