Refactoring message params helper