Refactoring of GP parameters learning.