Similarly to the other comment: the value of include_taxonomy could be assigned as follows:

```python
include_taxonomy = bt.ObservationMetadata is not None
```