TMSS-152: refactored observation task->subtask specification conversion, so it's more generic, and easier to read.