refactoring factory (2/2) | ScratchStats