Data availability
The code used to run analyses is available at https://github.com/nis38/JTM. The GBIF dataset on Euplagia quadripuncteria we used can be downloaded from https://doi.org/10.15468/dl.dtfjkv. The GBIF dataset on Turdus merula we used can be downloaded from https://doi.org/10.15468/dl.dn3vez. Other data we used are available at https://figshare.com/s/94529defd9aa93d18426.