[!!!][TASK] Use native trigger_error and ErrorHandler for deprecations