Refactored from 'autowired' to 'inject' annotation.