Opt out publishing to Serverless Platform in v.2

Prior to v.2 it was possible to explicitly disable publishing to Serverless Platform if user is logged in using publish: false flag. Now this property is deprecated, so is there a way to achieve the same?