refactor bitacora