Add deprecation warnings to old-style Location classes

These should use the `stack_level` parameter to make the warning come from the place that you call `_deprecation_warning`.