Move autoflushing logics to subclass