Remove deprecated getUri method.