Deprecation should have a better way of stubbing calls than this.