Since it is valid for a building to have a `nil` owner, rather than deleting the buildings when an owner is deleted you can just nullify them instead (i.e. set the `owner_id` on a building to `nil`).