Remove the unused function makeSafeCallback().

Seems like this would be better placed with other utility functions.