Prevent dependency detection from base classes.