Migrating Rule-Based Replica Rules to Autoscaling Policies