Removing unecessary protected method and lambda for `Hash#compact` implementations