move the definition of the mappings between extension states and their text