[recipe_modules/test_results] Refactor the logic of
generating full json results files to a single method

The motivation is we will add logic to not generate full
json results files if the json already has full JSON
results format.

This CL is a pure refactoring CL, there is no intended
behavior change.

BUG=649762

Review-Url: https://codereview.chromium.org/2460953002
1 file changed