Factorize Forms code.
Add a Logger class.