Allowing possibility of a blank case_origin

Also adding a little more clarity to how the case_origin is computed.