Add some message util methods, add action factory