def METHOD_NAME(n):
    extra_params = dict(**{'hostname': hostname} if hostname else {})
    return InstanceFactory(
        databaseinfra=infra,
        address='{0}.7{1}.{2}.{2}'.format(
            base_address, infra.id, n
        ),
        port=port,
        instance_type=instance_type,
        total_size_in_bytes=total_size_in_bytes,
        used_size_in_bytes=used_size_in_bytes,
        **extra_params
    )