Remove ref_write mechanism and instead maintain state for each