Split definitions into a header file.
Remove old test files.