compute: put result type methods in result file
Created by: rvantonder
Stacked on https://github.com/sourcegraph/sourcegraph/pull/26549.
Realized organizing variants with private methods in the same file feel better. This change makes the layout consistent with commands.go