Switch out yaml files for PHP factories