def ensure_step_position(step, order_index):
    """Ensure step contains a position definition."""
    if 'position' not in step:
        step['position'] = {'left': 10 * order_index, 'top': 10 * order_index}
