making core hentry removal into a non-anonymous class for older php versions