refatoracao de factories