Allow programmatic module sharding configuration