[flow] small refactorings

I tried to analyze why there are no updates to tree after file upload,
but haven't found it yet.
4 jobs for 475-dev-update-tree-after-corpus-creation in 12 minutes and 43 seconds (queued for 5 seconds)
latest
Status Job ID Name Coverage
  Cabal
failed #18391
cabal

00:12:43

 
  Stack
skipped #18392
stack
 
  Bench
skipped #18393
allowed to fail manual
bench
 
  Test
skipped #18394
test
 
Name Stage Failure
failed
cabal Cabal
+ actual_cabal_project_freeze_hash=2945cce2e24c8afb81d181cd8ab6b66eda53e81d45280d450c5e162e7245d7b0
+ [[ 2fafc6a678d454b050a1e5c7e51289c640b052aa654495a66686c164f56458a0 != 7d021a8e3d0b68421e26bdfe4e1da82f6ea26b6c420fc984b3c30c14bc5fea98 ]]
+ echo -e '\e[31mERROR! hash mismatch between expected cabal.project and the one computed by cabal2stack.\e[0m'
+ echo -e '\e[33mPlease update the hashes inside the '\''./bin/update-project-dependencies'\'' file.\e[0m'
+ exit 1
ERROR! hash mismatch between expected cabal.project and the one computed by cabal2stack.
Please update the hashes inside the './bin/update-project-dependencies' file.
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1