For a possible replacement, see https://gist.github.com/bantu/adada7fe658131bc3b76. This should be a globally available function then.