MEDIUM / Refactor foundation (diagram federation)