Make Plugin.register_hooks private