Automated Software Transplantation