To scale up or to refactor? That is the question