While I don't have the magic code, you might be interested in voting for this "Ideas" feature (if you haven't already) and add your perspective to the discussion: Disable "What If" Feature.
Good on your code hunt.
Due to the technical nature of the question, I'm going to share this question with the Canvas Developers Group as well.
Were you able to find an answer to your question? I am going to go ahead and mark this question as answered because there hasn't been any more activity in a while so I assume that you have the information that you need. If you still have a question about this or if you have information that you would like to share with the community, by all means, please do come back and leave a comment. Also, if this question has been answered by one of the previous replies, please feel free to mark that answer as correct.
Retrieving data ...