Autowired component factory