Create factory classes and move config to module.config.php