LPS-49124 Simplfy deleteOrphanedLayouts, and ensure the SQL query works with Oracle databases.
LPS-49124 Source Formatting