[TASK] Add logDeprecatedFunction() to two methods