Merge "Move Kosmos to its own build module" into main