Separated handler context generation
Added compile time generation of factories and injection of the factories into setup context
Incorporated entity definitions into setup context