Create new subproject 'legacy', move workgroup API into it
Code cleanup: unused imports, values, blocks, etc.