Clean plugin down to a minimal base implementation