Why not change the interface to `GeoIP2DatabaseAdapter` and remove the `instanceof` call?