Add support in partitioned factory for specifying selective retry