Rebuild internal plugin structure