simplified Swift migration functions