Extact copy functionality for all types from TypeFactory.
Completely removed TypeFactory.