Remove closure from _detectCapabilities