Adding ability to automatically map factory interface to constructors