Refactoring: removed unused PHP code