Revert "Fix deprecation in specs"

This reverts commit 414ead57ee294618e73ef62f521b11d98fdce3a0.