chore: share duplicated code
1 file changed