Add deprecated notices to deprecated functions