Improve plugin boilerplate class