Revert "Refactor coding scheme assignment code"

Roll-out the refactoring change. The code did not include the
necessary update to the test result and there are some concerns
about it in itself and the right approach would have been to
fix the copy and paste issue, then do the refactoring.

This reverts commit 22d7e75e1f160e5337140d9f3dcb2679b621b646.
1 file changed