Refactor messaging util class

This PR will update messaging Util class with constants.