Refactoring for Pinterest