Rewrite plugin types as operation phases