Simplify RandomPieceFactory.