Factorize Entropy2RP code - Adrien