refactor: refactor editor's collaboration to reduce package size (-390KB) and minimize compile errors