Migration: Fixed compilation errors in custom Deprecated function