Use the factory pattern for the partitiong strategies.