Why is this deprecated in favour of a constructor without a location?