[fix] remove old legacy code