minor refactor to Factory class and fixed a typo in .scrutinizer.yml