This is very similar to part of `Location` availability check. It may be worth, at some later point, to try and pull this into a common place.