refactor: reduce duplication
refactor: reduce duplication
refactor: reduce duplication
refactor: reduce duplication