Generify default build call
Improve error message when trying to access undefined factory
Fix typos and inline lambdas