Refactor PHP.