Seems like a weird helper method... why not just parse in place and use uri.host/uri.user?