def _ensure_allow_rp(rp_pyxb):
    """Ensure that RP allows replication."""
    if not rp_pyxb.replicationAllowed:
        rp_pyxb.replicationAllowed = True
    if not rp_pyxb.numberReplicas:
        rp_pyxb.numberReplicas = 3