Clean up PHP factorial solution.