[Cookbook][Templating] Remove deprecated function from code sample