[API] small refactoring to get explicit constructors

This makes it easier for me to grep code
4 jobs for 467-dev-api-refactorings in 14 minutes and 51 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Cabal
failed #18075
cabal

00:14:51

 
  Stack
skipped #18076
stack
 
  Bench
skipped #18077
allowed to fail manual
bench
 
  Test
skipped #18078
test
 
Name Stage Failure
failed
cabal Cabal
+ actual_cabal_project_freeze_hash=cd52143d3a9d285360b59c6371d3e258552c1bc115bd612024db3de1f7593ff7
+ [[ 9edc17eed5af9028fa78f4f0265409a535173a57a460e5ba2fee965e097dc37d != 963418e37a17d4bb67d4b885613144b36d290f612eea80355e82abc7e76b450c ]]
+ 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