deprecating implicitly inferring spec type