DRY up classifier instance variable cache cleaning