[Misc] Moved unused code to legacy: added @Deprecated annotation