Modularize plugin management