Move eventname method to plugins.