[COREVM-65] Clean up helper methods in process

Clean up helper functions in `corevm::runtime::process`.