How to migrate Teradata stored procedures?