Don't call deprecated APIs in specs