Removal of unneeded PHP code