refactor: remove obsolete functions