Made Factory autowireable with Spring