factorize minion id prediction