cmake: Drop obsolete EXPERIMENTAL and LEGACY flags

Also a small refactoring of CMakeLists.txt for iops.