refactor note classes to be stripped automatically on save