Moved nested creationof object to IoC