remove expensive join in migration