Major refactoring.
Conditionally test recode adapter.