util: Mark deprecated functions as deprecated

Closes #8234