Move status reading/writing to separate class