[misc] Fix deprecated calls
[misc] Move deprecated methods to legacy