Disable automatic replica set and shard configuration

Added support for disabling automatic configuration of replica sets and sharding.