Depcrate namespaced functions, since they can not be autoloaded

@bantu @DeepDiver1975 

#6101