Refactoring of msg managers.