Refactoring model construction in multi-label