Switch to new plugin registration style