Usually non-test code doing connection.vendor checks should instead use some database feature flag or backend method. At least this needs an explanation why this is done.