How to transform factory resulting object as service with DIC ?