Rewrite replica handling

Use auto_expand_replicas. It's way nicer and easier to control.

Change-Id: Ia707b3cabefab5ac5abf002017dc4d4c5f3fd078
Merge "Rewrite replica handling"