Define MessagePlugin as a trait to keep the ability to define api as a def