refactoring upgrade pizza