Migrated common functions