Moved service factories away from configuration to Module.php