Maybe this could be replaced too, so we could try to skip calling query twice (1. get all, 2. get taxons).