Perhaps just check to see whether the passed thing has a coords attribute and use that.