refactor: remove useless module
refactor: use `prototype` instead of `__proto__`
refactor: remove duplication code