refactor: remove redundant code