Migrating queries out of classfiles.