The PHP implemented reflection patterned refactoring factory PoC